package com.teach.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 
 * @TableName tb_course_base
 */
@TableName(value ="tb_course_base")
@Data
@ApiModel(value = "课程订单信息",description = "用于生成订单")
@Accessors(chain = true)
public class TbCourseBase implements Serializable {
    /**
     * 课程基本信息id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Integer id;

    /**
     * 课程名称
     */
    @ApiModelProperty(value = "课程名称")
    private String courseName;

    /**
     * 价格
     */
    @ApiModelProperty(value = "价格")
    private BigDecimal coursePrice;

    /**
     * 优惠价格
     */
    @ApiModelProperty(value = "优惠价格")
    private Integer courseDiscounts;

    /**
     * 用户id
用户id 只有老师权限上传视频
     */
    @ApiModelProperty(value = "用户id")
    private String teacherId;

    /**
     * 课程的购买数量
     */
    @ApiModelProperty(value = "课程的购买数量")
    private Integer quantity;

    /**
     * 图片
     */
    @ApiModelProperty(value = "图片")
    private String coursePicture;

    /**
     * 课程简介
     */
    @ApiModelProperty(value = "课程简介")
    private String courseSynopsis;

    /**
     * 删除
     */
    @ApiModelProperty(value = "删除")
    private Integer deleteState;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}